home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: novice.uwaterloo.ca!w3yu
- From: w3yu@novice.uwaterloo.ca (Wei Yu)
- Subject: Re: drand48() problems
- Sender: news@novice.uwaterloo.ca (Mr. News)
- Message-ID: <DMon7I.C4z@novice.uwaterloo.ca>
- Date: Mon, 12 Feb 1996 21:47:42 GMT
- References: <DMoE0p.BKs@novice.uwaterloo.ca>
- Nntp-Posting-Host: novice.uwaterloo.ca
- Organization: University of Waterloo
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Wei Yu (w3yu@novice.uwaterloo.ca) wrote:
- : Hi, I am trying to generate random numbers with the drand48() routine
- : available in UNIX C library. But apperantly, drand48() always returns 0.
- :
-
- problem solved, all I needed to do was to include the function prototype
-
- extern double drand48();
-